package com.sirg.config.mybatisPlus;import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;import com.sirg.util.CommonUtils;import org.apache.ibatis.reflection.MetaObject;import org.springframework.stereotype.Component;/** * @Author: Sir-G * @Autograph: 安稳 * @Description: //TODO 实现MybatisPlus自动注入公共字段处理类 * @Date: 2023-07-20 16:45:35 */@Componentpublic class MyMetaObjectHandler implements MetaObjectHandler {    @Override    public void insertFill(MetaObject metaObject) {        this.setFieldValByName("createTime", CommonUtils.getCurrentLinuxTimeCode(), metaObject);    }    @Override    public void updateFill(MetaObject metaObject) {        this.setFieldValByName("updateTime", CommonUtils.getCurrentLinuxTimeCode(), metaObject);    }}